generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from SonicGarden/dev
v4
- Loading branch information
Showing
11 changed files
with
30,062 additions
and
21,601 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"version":"3.9.2", | ||
"examples":[ | ||
{ | ||
"id":"./spec/activestorage/validator/blob_spec.rb[1:1:1:1]", | ||
"description":"is expected to eq false", | ||
"full_description":"ActiveRecord::Validations::BlobValidator presence: true has_one_attached is expected to eq false", | ||
"status":"passed", | ||
"file_path":"./spec/activestorage/validator/blob_spec.rb", | ||
"line_number":10, | ||
"run_time":0.016242, | ||
"pending_message":null | ||
}, | ||
{ | ||
"id":"./spec/activestorage/validator/blob_spec.rb[1:1:1:2]", | ||
"description":"is expected to eq true", | ||
"full_description":"ActiveRecord::Validations::BlobValidator presence: true has_one_attached is expected to eq true", | ||
"status":"passed", | ||
"file_path":"./spec/activestorage/validator/blob_spec.rb", | ||
"line_number":11, | ||
"run_time":0.044519, | ||
"pending_message": "Not yet implemented" | ||
} | ||
], | ||
"summary":{ | ||
"duration":0.297397, | ||
"example_count":1, | ||
"failure_count":0, | ||
"pending_count":0, | ||
"errors_outside_of_examples_count":0 | ||
}, | ||
"summary_line":"1 example, 0 failures, 1 pending" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as path from 'path' | ||
import {parse} from '../src/parse' | ||
import {expect, test} from '@jest/globals' | ||
|
||
test('Parse rspec result json', async () => { | ||
const result = parse([path.resolve(__dirname, '../.dummy_results-0.json')]) | ||
expect(result).toEqual({ | ||
summary: '25 examples, 1 failure', | ||
examples: [ | ||
{ | ||
filePath: 'spec/activestorage/validator/blob_spec.rb', | ||
lineNumber: 37, | ||
description: | ||
'ActiveRecord::Validations::BlobValidator with size_range option 1.4MB is expected to eq true', | ||
message: '\\nexpected: true\\n got: false\\n\\n(compared using ==)' | ||
} | ||
], | ||
success: false | ||
}) | ||
}) |
Oops, something went wrong.