{"action":"opened","issue":{"url":"https://api.github.com/repos/ConsenSys/truffle/issues/222","repository_url":"https://api.github.com/repos/ConsenSys/truffle","labels_url":"https://api.github.com/repos/ConsenSys/truffle/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/ConsenSys/truffle/issues/222/comments","events_url":"https://api.github.com/repos/ConsenSys/truffle/issues/222/events","html_url":"https://github.com/ConsenSys/truffle/issues/222","id":169412074,"number":222,"title":"[Error] truffle fails to build project consisting of only a contract and a test file ","user":{"login":"SethVgr","id":19685073,"avatar_url":"https://avatars.githubusercontent.com/u/19685073?v=3","gravatar_id":"","url":"https://api.github.com/users/SethVgr","html_url":"https://github.com/SethVgr","followers_url":"https://api.github.com/users/SethVgr/followers","following_url":"https://api.github.com/users/SethVgr/following{/other_user}","gists_url":"https://api.github.com/users/SethVgr/gists{/gist_id}","starred_url":"https://api.github.com/users/SethVgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SethVgr/subscriptions","organizations_url":"https://api.github.com/users/SethVgr/orgs","repos_url":"https://api.github.com/users/SethVgr/repos","events_url":"https://api.github.com/users/SethVgr/events{/privacy}","received_events_url":"https://api.github.com/users/SethVgr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T16:06:15Z","updated_at":"2016-08-04T16:06:15Z","closed_at":null,"body":"# Checklist\r\n- [done ] installed **truffle** and **testrpc**\r\n\r\n```\r\n# npm install -g truffle\r\n# npm install -g testrpc\r\n```\r\n\r\nCreated a directory and ran initialized truffle:\r\n\r\n```\r\nmkdir test_project\r\ncd test_project\r\ntruffle init\r\n```\r\n\r\nCleared the pregenerated contracts and tests:\r\n\r\n`rm -r tests/* contracts/* build/*`\r\n\r\nAdded a minimalist contract and test js file:\r\n\r\n**C.sol**\r\n```\r\ncontract C {\r\n    \r\n    string words = \"Bla bla bla\";\r\n    \r\n    uint256 lastVal;\r\n    \r\n    function math(uint256 a, uint256 b) returns (uint256) {\r\n        lastVal = a + b;\r\n        return lastVal;\r\n    }\r\n    \r\n    function getWords() constant returns (string) {\r\n        return words;\r\n    }\r\n}\r\n```\r\n\r\n**c.js**\r\n```\r\ncontract('C', function(accounts) {\r\n  it(\"Getting the words string from the contract\", function() {\r\n    var c = C.deployed();\r\n\r\n    return c.getWords.call(accounts[0]).then(function(words) {\r\n      assert.equal(words, \"Bla bla bla\", \"[E] The contract should have said \\\"Bla bla bla\\\"\");\r\n    });\r\n  });\r\n\r\n  it(\" 2 + 2 = 4 \", function(){\r\n    var c = C.deployed();\r\n\r\n    return c.math(2, 2).then(function(additionResult){\r\n        assert.equal(additionResult, 4, \"[E] 2 + 2 = 4 even in eth. contracts.\");\r\n    });\r\n  });\r\n});\r\n```\r\n\r\nand ran \r\n\r\n`truffle build`\r\n\r\n## System/environment\r\n\r\n- OS: debian 8.3 Jessie x64, kernel version 3.16.0-4-amd64, virtual machine, running on VirtualBox, host machine Win7 x64, NAT network settings used\r\n\r\n## Expected behaviour\r\n\r\n**truffle** should have generated build artifacts in the build directory but it didn't (the directory is empty).\r\n\r\n## Observed behaviour\r\n\r\nThere are no files added to the **build** directory."}}
{"actor":{"display_login":"SethVgr"}}