Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2019-05-12 14:25:12 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
340ef62e4aa8872e6838175017e4b3c446753499
340ef62e
1 parent
3cc40cee
Improve the Makefile
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
.gitignore
Makefile
printing/example/test/pdf_test.dart → printing/test/printing_test.dart
.gitignore
View file @
340ef62
...
...
@@ -37,3 +37,4 @@ pdf/lcov.info
pdf/coverage.json
.coverage
package-lock.json
printing/lcov.info
...
...
Makefile
View file @
340ef62
...
...
@@ -53,15 +53,19 @@ format-swift: $(SWFT_SRC)
node_modules
:
npm install lcov-summary
test
:
$(FONTS) .coverage node_modules
test
-pdf
:
$(FONTS) .coverage
cd
pdf; pub get
cd
pdf; pub global run coverage:collect_coverage --port
=
$(COV_PORT)
-o coverage.json --resume-isolates --wait-paused &
\
dart --enable-asserts --disable-service-auth-codes --enable-vm-service
=
$(COV_PORT)
--pause-isolates-on-exit
test
/all_tests.dart
cd
pdf; pub global run coverage:format_coverage --packages
=
.packages -i coverage.json --report-on lib --lcov --out lcov.info
cd
pdf;
for
EXAMPLE
in
$(
shell
cd
pdf; find example -name
'*.dart'
)
;
do
dart
$$
EXAMPLE;
done
cd
printing/example; flutter packages get
cd
printing/example; flutter
test
node_modules/.bin/lcov-summary pdf/lcov.info
test-printing
:
$(FONTS) .coverage
cd
printing; flutter packages get
cd
printing; flutter
test
--coverage --coverage-path lcov.info
test
:
test-pdf test-printing node_modules
cat pdf/lcov.info printing/lcov.info | node_modules/.bin/lcov-summary
clean
:
git clean -fdx -e .vscode
...
...
@@ -80,14 +84,18 @@ publish-printing: format clean
pub global activate pana
touch
$@
analyze
:
.pana
analyze
-pdf
:
.pana
@
find pdf -name pubspec.yaml -exec sed -i -e
's/^dependency_overrides:/_dependency_overrides:/g'
'{}'
';'
@
find printing -name pubspec.yaml -exec sed -i -e
's/^dependency_overrides:/_dependency_overrides:/g'
'{}'
';'
@
pub global run pana --no-warning --source path pdf 2> /dev/null | python pana_report.py
@
pub global run pana --no-warning --source path printing 2> /dev/null | python pana_report.py
@
find pdf -name pubspec.yaml -exec sed -i -e
's/^_dependency_overrides:/dependency_overrides:/g'
'{}'
';'
analyze-printing
:
.pana
@
find printing -name pubspec.yaml -exec sed -i -e
's/^dependency_overrides:/_dependency_overrides:/g'
'{}'
';'
@
pub global run pana --no-warning --source path printing 2> /dev/null | python pana_report.py
@
find printing -name pubspec.yaml -exec sed -i -e
's/^_dependency_overrides:/dependency_overrides:/g'
'{}'
';'
analyze
:
analyze-pdf analyze-printing
.dartfix
:
pub global activate dartfix
touch
$@
...
...
printing/
example/test/pdf
_test.dart → printing/
test/printing
_test.dart
View file @
340ef62
...
...
@@ -5,7 +5,7 @@ import 'package:flutter_test/flutter_test.dart';
import
'package:pdf/pdf.dart'
;
import
'package:pdf/widgets.dart'
as
pdf
;
import
'
package:printing_example
/document.dart'
;
import
'
../example/lib
/document.dart'
;
void
main
(
)
{
testWidgets
(
'Pdf Generate the document'
,
(
WidgetTester
tester
)
async
{
...
...
Please
register
or
login
to post a comment