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

Add e2e tests running test scripts #99

Open
pablochacin opened this issue Jan 16, 2023 · 0 comments
Open

Add e2e tests running test scripts #99

pablochacin opened this issue Jan 16, 2023 · 0 comments

Comments

@pablochacin
Copy link
Collaborator

Presently, integration tests test the golang code. Additional tests are required to ensure the js extension works properly.
These tests should

  1. launch a test cluster
    2 setup resources (e.g. deploy pods, expose services)
    3 execute a test script

Steps 1. and 2. can reuse existing test setup utils.

Step 3. requires a mechanism for executing a script and validate the results. Two approaches could be used here:

  • Run the xk6-disruptor binary as a process passing the test script from a file. This approach makes difficult to check the result (output needs to be parsed)
  • Setup a test goja environment and load a execute the script (see for example this test). This approach has the inconvenient that it is not really testing the final extension (for example, the initialization code)
@pablochacin pablochacin mentioned this issue Jun 21, 2023
7 tasks
@pablochacin pablochacin changed the title Add integration tests running test scripts Add e2e tests running test scripts Jul 5, 2023
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