You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any other packages or constraints: json_annotation:1.0.0, json_serializable: 1.0.1.
I don't know if it's the right repo to post this issue, but it's when using build_test that the issue raises.
The problem appeared when testing the lcov package (version 4.3.0, see https://github.com/cedx/lcov.dart).
If I build the package manually using pub run build_runner build, and then launch the tests using pub run test, everything is OK:
$ pub run build_runner build # OK
$ pub run test --platform=vm # All tests passed!
$ pub run test --platform=chrome # All tests passed!
If I use pub run build_runner test for testing, the issue raises:
$ pub build_runner test -- --platform=vm # All tests passed!
$ pub build_runner test -- --platform=chrome # Error!!!
With the following error:
Running tests...
00:03 +8 -1: test\function_test.dart: FunctionCoverage .toString() should return a format like "FNF:<found>\n,FNH:<hit>" [E]
Expected: 'FN:127,main\n'
'FNDA:3,main\n'
'FNF:3\n'
'FNH:19'
Actual: 'FNDA:3,main\n'
'FNDA:3,main\n'
'FNF:3\n'
'FNH:19'
Which: is different.
Expected: FN:127,main\ ...
Actual: FNDA:3,main\ ...
^
Differ at offset 2
package:test expect
function_test.dart 53:9 test$.test.dart.fn
build_runner
: 0.10.0,build_test
: 0.10.3,build_web_compilers
: 0.4.1,test
: 1.3.0json_annotation:
1.0.0,json_serializable
: 1.0.1.I don't know if it's the right repo to post this issue, but it's when using
build_test
that the issue raises.The problem appeared when testing the
lcov
package (version 4.3.0, see https://github.com/cedx/lcov.dart).If I build the package manually using
pub run build_runner build
, and then launch the tests usingpub run test
, everything is OK:If I use
pub run build_runner test
for testing, the issue raises:With the following error:
The
FunctionCoverage#toString()
method calls theFunctionData#toString({bool asDefinition = false})
method two times : the first time withasDefinition = true
, the second time withasDefinition = false
.Cf. https://github.com/cedx/lcov.dart/blob/master/lib/src/function.dart#L36
It seems that when the project is compiled by
build_test/build_web_comilers
, the optional named parameterasDefinition
is ignored.The text was updated successfully, but these errors were encountered: