Giter Site home page Giter Site logo

hxmake's People

Contributors

eliasku avatar ilya-ku avatar mayakwd avatar romanmikhailov avatar romanmikhailovplaytika avatar vitaliykay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hxmake's Issues

[Feature] TestPlugin

There is need for create a test plugin which create test tasks on configuration step based on provided module configurations.

something like:

...
testConfiguration(function(config:TestConfigurationExt) {
     config.targets = [Target.Flash, Target.Js, Target.NodeJs];
     config.defines = ["my_supper_define"];
     config.perTargetTestConfiguration(Target.Js, function(targetConfig:PerTargetTestConfiguration) {
          targetConfig.defines = ["html5"];
     });
})
...

[IdeaPlugin] Project doesn't opened after executing idea task on macOS

I have a very simple hxmake module.
hxmake idea generate proper Intellij idea project but doesn't launch project. Just opens Intellij IDEA instance.

Example of module:

package;

import hxmake.haxelib.HaxelibExt;
import hxmake.haxelib.HaxelibPlugin;
import hxmake.idea.IdeaPlugin;
import hxmake.Module;

using hxmake.haxelib.HaxelibPlugin;

class SimpleModule extends Module {
    function new() {
        config.classPath = ["src/main/haxe"];
        config.testPath = ["src/test/haxe"];

        apply(HaxelibPlugin);
        apply(IdeaPlugin);

        library(function(ext:HaxelibExt) {
            ext.config.description = "Description";
            ext.config.contributors = ["Roman Mikhailov"];
            ext.config.license = "MIT";
            ext.config.version = "0.0.1";
            ext.config.releasenote = "No releases";
            ext.config.tags = ["tag, tag1"];

            ext.pack.includes = ["src/main/haxe", "haxelib.json"];
        });
    }
}

[TestTask] JS target neko still running after test task execution.

Looks like phantomjs doesn't closing after test execution on macOS.

Minimal example:
https://github.com/romanmikhailov/hxmake_test_js_bug_example
Gist:
https://gist.github.com/romanmikhailov/6a53800511e329cc58eff0b8be7a892e

This results that previous test result or result from other test will be output:

hxmake_jstest_bug mikhailovr$ hxmake test1
/usr/local/lib/haxe/lib/hxmake/0,2,1/src/hxmake/utils/Haxe.hx:41: characters 31-49 : Warning : Use programPath instead
Tasks order:
	test1 for hxmake_jstest_bug
2.1.1
PrintReport.hx:52: 
assertations: 1
successes: 1
errors: 0
failures: 0
warnings: 0
execution time: 0.003

results: ALL TESTS OK (success: true)
TestCase1
  test1pass: OK .

Make time: 4.56 sec.
hxmake_jstest_bug mikhailovr$ 
hxmake_jstest_bug mikhailovr$ hxmake test2
/usr/local/lib/haxe/lib/hxmake/0,2,1/src/hxmake/utils/Haxe.hx:41: characters 31-49 : Warning : Use programPath instead
Tasks order:
	test2 for hxmake_jstest_bug
2.1.1
PrintReport.hx:52: 
assertations: 1
successes: 1
errors: 0
failures: 0
warnings: 0
execution time: 0.003

results: ALL TESTS OK (success: true)
TestCase1
  test1pass: OK .

Make time: 4.56 sec.
hxmake_jstest_bug mikhailovr$ 

but correct output of test2 is:

hxmake_jstest_bug mikhailovr$ hxmake test2
/usr/local/lib/haxe/lib/hxmake/0,2,1/src/hxmake/utils/Haxe.hx:41: characters 31-49 : Warning : Use programPath instead
Tasks order:
	test2 for hxmake_jstest_bug
2.1.1
PrintReport.hx:52: 
assertations: 1
successes: 1
errors: 0
failures: 0
warnings: 0
execution time: 0.003

results: ALL TESTS OK (success: true)
TestCase2
  test2pass: OK .

Make time: 4.96 sec.
hxmake_jstest_bug mikhailovr$ 

Looks like Task#enabled doesn't works

Content of make/EnabledTestModule.hx:

package;

import hxmake.cli.MakeLog;
import hxmake.Task;

class EnabledTestModule extends hxmake.Module {
    public function new() {
        task("task1", Task.empty().doLast(function(_):Void { MakeLog.warning("task1"); }));
        task("task1").enabled = false;
    }
}

Run of:

hxmake task1

Produces:

$ hxmake task1
/usr/local/lib/haxe/lib/hxmake/0,2,1/src/hxmake/utils/Haxe.hx:41: characters 31-49 : Warning : Use programPath instead
Tasks order:
	task1 for hxmake_task_enabled
[WARNING] task1
Make time: 0 sec.

Examples repository

Create examples repository to demonstrate current capabilities. Add examples running to hxmake continues-integration process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.