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

feat: "--dart-define" option in test #91

Open
SuhwanCha opened this issue Dec 8, 2022 · 0 comments
Open

feat: "--dart-define" option in test #91

SuhwanCha opened this issue Dec 8, 2022 · 0 comments
Labels
feature A new feature or request p2 Important issues not at the top of the work list

Comments

@SuhwanCha
Copy link

SuhwanCha commented Dec 8, 2022

flutter/flutter#34505

import 'package:flutter/foundation.dart';

String foo() {
  if (kReleaseMode) {
    return null;
  }
  return _calculateABunchOfStuffAndReturnALongString();
}

To cover source code above, --dart-define option is needed.

For example, to testing device in release mode,

flutter test --dart-define=dart.vm.product=true
@SuhwanCha SuhwanCha added the bug Something isn't working as expected label Dec 8, 2022
@SuhwanCha SuhwanCha changed the title feat: "--dart-define" option in feat: "--dart-define" option in test Dec 8, 2022
@felangel felangel moved this to Needs Triage in VGV Open Source 🦄 🧙🌟 Jan 17, 2023
@felangel felangel added needs triage Issue requires triage feature A new feature or request and removed bug Something isn't working as expected labels Jan 17, 2023
@BeatriceMitchell BeatriceMitchell removed the needs triage Issue requires triage label Jan 23, 2023
@BeatriceMitchell BeatriceMitchell moved this from Needs Triage to Backlog in VGV Open Source 🦄 🧙🌟 Jan 23, 2023
@tomarra tomarra added the p2 Important issues not at the top of the work list label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or request p2 Important issues not at the top of the work list
Projects
Status: Backlog
Development

No branches or pull requests

4 participants