Skip to content

Conversation

@gayanW
Copy link
Contributor

@gayanW gayanW commented Nov 18, 2025

I have already recorded some data using this runner from my local machine:
https://app.launchableinc.com/organizations/launchableinc/workspaces/gweerakutti/data/test-sessions/5286151

If you want to create a new project and test from scratch:

% npm install --save-dev jasmine jasmine-json-test-reporter
% npx jasmine init
% npx jasmine example
% git commit -a -m "Initial commit"

Create spec/helpers/jasmine-json-test-reporter.js

var JSONReporter = require('jasmine-json-test-reporter');
jasmine.getEnv().addReporter(new JSONReporter({
	file: 'jasmine-report.json'
}));

Record tests

BUILD_NAME=jasmine_build
launchable record build --name ${BUILD_NAME}
launchable record session --build ${BUILD_NAME} > session.txt

# Write all tests to a file
find spec/jasmine_examples -type f > test_list.txt

# Run all tests
npx jasmine $(cat test_list.txt)

launchable record tests --session $(cat session.txt) --base $(pwd) jasmine jasmine-report.json

Subset

cat test_list.txt | launchable subset --target 25% --session $(cat session.txt) jasmine > subset.txt
npx jasmine $(cat subset.txt)

@gayanW gayanW requested a review from kohsuke November 18, 2025 13:53
@gayanW gayanW changed the base branch from main to v1 November 18, 2025 13:54
Copy link
Contributor

@kohsuke kohsuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for providing details to run Jasmine ourselves. Indeed, from time to time we need to go back to some test runners to experiment with its behavior, and information like this is really handy. While you are at it, I'd encourage you to add tests/data/jasmine/README.md or something and puts your PR description there.

@kohsuke kohsuke merged commit 0e2e283 into v1 Nov 18, 2025
13 checks passed
@kohsuke kohsuke deleted the LCHIB-653 branch November 18, 2025 16:44
@github-actions github-actions bot mentioned this pull request Nov 18, 2025
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.

3 participants