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

Improve test setup #164

Closed
clangenb opened this issue Jul 8, 2020 · 8 comments
Closed

Improve test setup #164

clangenb opened this issue Jul 8, 2020 · 8 comments
Assignees

Comments

@clangenb
Copy link
Contributor

clangenb commented Jul 8, 2020

Our test setup is very brittle. Some tests do only run under certain circumstances, e.g., see #163 .

We should fix our CI setup to actually run our tests and make sure that we perform a proper setup before running the tests.

This is now even more important as we start having tasks solved by other developpers who should be equiped with a proper test setup.

@murerfel murerfel self-assigned this Jul 7, 2021
@murerfel
Copy link
Contributor

@clangenb has made a big effort to run our tests on GitHub actions - including the M6 and M8 integration tests.
What we're missing, are some tests in the enclave - so far we're only running the 'unit' tests in the enclave, using substratee-worker test -u (see #163).

@brenzi
Copy link
Collaborator

brenzi commented Aug 8, 2021

I'd expect that after the refactoring going on now we should be able to test enclave stuff even with cargo test. Is this correct?

But regarding integration tests (currently only M4 and M6 in GA), we might actually add substratee-worker test -i
Most of this will be covered by M4 and M6, but IPFS support not yet

@murerfel
Copy link
Contributor

murerfel commented Aug 9, 2021

The enclave we still test by running substratee-worker test -u. I think there are some std import/feature issues that prevent us from using cargo test? Maybe @clangenb can comment - there is some related discussion on this topic in issue #272 ?

The worker already has a -i option for integration tests (see here), but we don't run them with GH actions yet, since they would also require a full setup with a running node. According to @clangenb , most of those tests are already covered by the M6 and M8 integration tests.

@clangenb
Copy link
Contributor Author

clangenb commented Aug 9, 2021

Yes, I am even thinking of getting rid of the -i flag, as everything is currently covered in the test scripts.

We could introduce the -i flag again later, but with more meaningful cases, e.g., corner-cases that are not covered in M6/M8.

@brenzi
Copy link
Collaborator

brenzi commented Aug 10, 2021

IPFS functionality isn't integration-tested by M8/M6

@haerdib
Copy link
Contributor

haerdib commented Sep 28, 2022

@mullefel I think this issue is obsolete now, isn't it?

@murerfel
Copy link
Contributor

I think we can close this, yes. IPFS functionality though still isn't tested in any way.. but then again we don't have a use-case for it at the moment and can re-introduce testing for it once we do?

@haerdib
Copy link
Contributor

haerdib commented Sep 28, 2022

Yes, I agree. IPFS is not used, and should be long made optional: #491

Additionally, there's even a dedicated issue for IPFS testing: #398

@haerdib haerdib closed this as completed Sep 28, 2022
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

No branches or pull requests

4 participants