{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1958","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1958/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1958/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1958/events","html_url":"https://github.com/wp-cli/wp-cli/issues/1958","id":98481015,"number":1958,"title":"How to write tests for wp-cfm?","user":{"login":"mortona42","id":696005,"avatar_url":"https://avatars.githubusercontent.com/u/696005?v=3","gravatar_id":"","url":"https://api.github.com/users/mortona42","html_url":"https://github.com/mortona42","followers_url":"https://api.github.com/users/mortona42/followers","following_url":"https://api.github.com/users/mortona42/following{/other_user}","gists_url":"https://api.github.com/users/mortona42/gists{/gist_id}","starred_url":"https://api.github.com/users/mortona42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortona42/subscriptions","organizations_url":"https://api.github.com/users/mortona42/orgs","repos_url":"https://api.github.com/users/mortona42/repos","events_url":"https://api.github.com/users/mortona42/events{/privacy}","received_events_url":"https://api.github.com/users/mortona42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T22:16:55Z","updated_at":"2015-07-31T22:20:31Z","closed_at":null,"body":"Hey, I'm working on wp-cfm, over at https://github.com/forumone/wp-cfm.  I'd like to write up some test cases for the plugin - for example creating/saving/loading config with different arguments and validating the db storage or file changes.\r\n\r\nI'm looking at the documentation for contributing to wp-cli, and I'm not understanding how to set up my test environment.  I think I want to start with behat functional tests - the .feature files in wp-cli looks like what I'm trying to achieve.  However, I'm stuck on step 1 of https://github.com/wp-cli/wp-cli/wiki/Package-Functional-Tests.  Running wp scaffold package-tests . from within my plugin directory says I'm missing a composer.json file.\r\n\r\nAccording to https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbook, this plugin should either have a composer.json file, or I'd have to specify --require=/path/to/wp-cfm in order to run the functions, however the commands are working for me just by having the plugin installed.\r\n\r\nWhat am I missing here?  Do I need to convert the plugin to a community package, and create a composer.json file in order to run tests?  Am I going about this the right way?"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/126826320","html_url":"https://github.com/wp-cli/wp-cli/issues/1958#issuecomment-126826320","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1958","id":126826320,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T22:20:31Z","updated_at":"2015-07-31T22:20:31Z","body":"> Running wp scaffold package-tests . from within my plugin directory says I'm missing a composer.json file.\r\n\r\nCan you share the exact output of your command execution?"}}