Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with node runner #47

Closed
wants to merge 2 commits into from
Closed

Conversation

geofmureithi
Copy link
Contributor

Referenced issue
#45

Summary of changes

Added an example to run tests with node

This outputs:

▶ Raffle Contract
  ✔ createAccounts (23697.621667ms)
Error: soroban error exit 0, error: Failed to find config network for futurenet

    at RaffleTests.runSoroban (file:///Users/geoffreymureithi/Projects/nebula/tests/contracts/basetests.ts:1:2036)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RaffleTests.deployContract (file:///Users/geoffreymureithi/Projects/nebula/tests/contracts/basetests.ts:1:1465)
    at async TestContext.<anonymous> (file:///Users/geoffreymureithi/Projects/nebula/tests/contracts/raffle.test.ts:1:2646)
    at async Test.run (node:internal/test_runner/test:581:9)
    at async TestContext.<anonymous> (file:///Users/geoffreymureithi/Projects/nebula/tests/contracts/raffle.test.ts:1:2605)
    at async Test.run (node:internal/test_runner/test:581:9)
    at async startSubtest (node:internal/test_runner/harness:204:3)
  ✔ deployContract (71.868417ms)
error:  Error: soroban error exit 1, error: no such command: `lab`
        
        View all installed plugins with `soroban --list`

  ✔ getTokenId (46.24275ms)
error:  Error: soroban error exit 0, error: Failed to find config network for futurenet

  ✔ invokeInit (40.98925ms)
error:  Error: soroban error exit 0, error: Failed to find config network for futurenet

error:  Error: soroban error exit 0, error: Failed to find config network for futurenet

error:  Error: soroban error exit 0, error: Failed to find config network for futurenet

  ✔ invokeBuyTickets (123.41625ms)
error:  Error: soroban error exit 0, error: Failed to find config network for futurenet

  ✔ invokePlayRaffle (40.971958ms)
error:  Error: soroban error exit 0, error: Failed to find config network for futurenet

  ✔ checkBalance (40.768041ms)
▶ Raffle Contract (24063.782292ms)

ℹ tests 8
ℹ suites 0
ℹ pass 8
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0

@geofmureithi geofmureithi marked this pull request as ready for review August 25, 2023 13:36
@geofmureithi geofmureithi requested a review from mariopil August 25, 2023 13:36
@geofmureithi geofmureithi mentioned this pull request Aug 25, 2023
@geofmureithi geofmureithi changed the title Chore/test with node runner Test with node runner Aug 25, 2023
@geofmureithi geofmureithi deleted the chore/test-with-node-runner branch November 15, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant