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

[Ekapkgs/python] Move tests to separate passthru drv #20

Open
jonringer opened this issue Dec 4, 2024 · 0 comments
Open

[Ekapkgs/python] Move tests to separate passthru drv #20

jonringer opened this issue Dec 4, 2024 · 0 comments

Comments

@jonringer
Copy link
Contributor

Some test suites are pretty exhausitve and annoying to run. I think the default should be:

  • Ensure that runtime dependencies are available post install
  • Some type of import smoke test (e.g. pythonImportCheck)

By default, I would like to:

  • Have a "test" output
  • Move the "$testDir" to the test output
  • Have some pytestCheckHook like mkDerivation which will effectively run:
  pkgs.runCommand "${drv.name}-test" { nativeBuildInputs = [ pytestCheckHook ]; } ''
    touch $out
  ''
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

1 participant